<%--
  Created by IntelliJ IDEA.
  User: tly
  Date: 2021/7/23
  Time: 9:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>网上商店后台-添加</title>
    <meta charset="utf-8">
    <!--全局CSS-->
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/share/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/share/myStyle.css">
    <!--私有CSS-->
    <link href="${pageContext.request.contextPath}/plugins/datetimePicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">

</head>
<body>
<!-- 页面顶部导航条 -->
<div class="row panel titlePanel">
    <div class="col-md-12">
        <div class="col-md-3">
            <h3>
                <i class="fa fa-dashboard"></i> 商品管理
            </h3>
        </div>
        <div class="col-md-6">
            <div style="text-align: center;"></div>
        </div>
        <div class="col-md-3">
            <ul class="functionTip app-breadcrumb breadcrumb">
                <li class="breadcrumb-item"><i class="fa fa-home fa-lg"></i></li>
                <li class="breadcrumb-item"><a href="">商品管理 / 添加</a></li>
            </ul>
        </div>
    </div>
</div>
<!-- 页面内容体 -->

<div class="row">
    <div class="col-md-12">
        <form  action="${pageContext.request.contextPath}/goods/add" method="post" enctype="multipart/form-data">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">添加商品</h3>

                </div>
                <div class="panel-body">

                    <div class="form-group col-md-6 form-inline">
                        <label class="control-label-required">条码</label>
                        <input class="form-control" type="text" placeholder="请输入商品的条码" name="goodsBarcode">
                    </div>

                    <div class="form-group col-md-6 form-inline" >
                        <label class="control-label-required">名称</label>
                        <input class="form-control" type="text" placeholder="请输入商品的名称" name="goodsName">
                    </div>

                    <div class="form-group col-md-6 form-inline">
                        <label class="control-label-required">类别</label>
                        <select class="form-control" name="goodstypesId">
                            <option>-------请选择------</option>
                            <option value="1">文学</option>
                            <option value="2">教材</option>
                            <option value="3">教学辅导</option>
                        </select>
                    </div>


                    <div class="form-group col-md-6 form-inline" >
                        <label class="control-label-required">制造<br>商</label>
                        <input class="form-control" type="text" placeholder="请输入商品的制造商" name="goodsProducter">
                    </div>

                    <div class="form-group col-md-6 form-inline" >
                        <label class="control-label-required">单价</label>
                        <input class="form-control" type="text" placeholder="请输入商品的单价" name="goodsPrice">
                    </div>

                    <div class="form-group col-md-6 form-inline" >
                        <label class="control-label-required">生产<br>日期</label>
                        <div id="birthdayDivId" class="input-group date form_datetime" data-date="" data-date-format="yyyy-mm-dd" data-link-field="manufactureDateId" data-link-format="yyyy-mm-dd"
                             style="width: 35rem">
                            <input class="form-control" type="text" value="" readonly >
                            <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
                        </div>
                        <input type="hidden" id="manufactureDateId" value="" name="goodsManufacturedate"/><br/>
                    </div>

                    <div class="form-group col-md-6 form-inline" >
                        <label class="control-label-norequired">主图</label>
                        <input class="form-control" type="file" name="goodsHomepic1" multiple="multiple">
                    </div>
                    <div class="form-group col-md-6 form-inline" >
                        <label class="control-label-norequired">轮播<br>图1</label>
                        <input class="form-control" type="file">
                    </div>
                    <div class="form-group col-md-6 form-inline" >
                        <label class="control-label-norequired">轮播<br>图2</label>
                        <input class="form-control" type="file">
                    </div>
                    <div class="form-group col-md-6 form-inline" >
                        <label class="control-label-norequired">轮播<br>图3</label>
                        <input class="form-control" type="file">
                    </div>
                    <div class="form-group col-md-6 form-inline" >
                        <label class="control-label-norequired">轮播<br>图4</label>
                        <input class="form-control" type="file">
                    </div>
                    <div class="form-group col-md-6 form-inline" >
                        <label class="control-label-norequired">轮播<br>图5</label>
                        <input class="form-control" type="file">
                    </div>

                </div>
                <div class="panel-footer">
                    <div class="btn-group">
                        <button type="button" class="btn btn-primary" onclick="navTo('list.html')"><i class="fa fa-fw fa-lg fa-times-circle"></i>取消</button>
                        <button type="submit" class="btn btn-warning"><i class="fa fa-fw fa-lg fa-check-circle"></i>提交</button>
                    </div>
                </div>
            </div>
        </form>
    </div>

</div>

<!--全局JS -->
<script src="${pageContext.request.contextPath}/js/share/jquery-3.2.1.min.js"></script>
<script src="${pageContext.request.contextPath}/js/share/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/js/share/share.js"></script>
<!--私有JS-->
<script type="text/javascript" src="${pageContext.request.contextPath}/plugins/datetimePicker/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/plugins/datetimePicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript">
    $("#birthdayDivId").datetimepicker({
        format: 'yyyy-mm-dd',
        language:  'zh-CN',
        weekStart: 1,
        todayBtn:  true,
        autoclose: true,
        todayHighlight: 1,
        startView: "month",
        forceParse: 0,
        showMeridian: 1,
        minView: "month"//设置只显示到月份
    });


</script>
</body>
